<cfajaximport tags="cfmenu,cfgrid,cfwindow,cfform,cftextarea" />
<cfsilent>
	<cfparam name="contentPage" type="string" default="mainPage.cfm" />
	<cfparam name="url.contextPage" type="string" default="#CGI.query_string#" />
</cfsilent>

<cfoutput>
	<html>
		<head>
			<title>Wildfire Dofus Tool</title>
			<link rel="stylesheet" type="text/css" href="css/styles.css" />
		</head>
		<body>
			<cfif isUserInRole("pending")>
				<div class="error-message">
					Hallo #getAuthUser()#,<br />
					du wurdest bisher noch nicht freigeschaltet.<br />
					<cflogout />
					<cfabort />
				</div>
			</cfif>
			<cflayout name="outerlayout" type="vbox">
			    <cflayoutarea style="height:600;">
			        <cflayout name="thelayout" type="border">
			            <cflayoutarea position="top" size="60" splitter="true" style="height:100%">
				            <div class="float-left">
								<img src="img/wildfire_logo.png" height="50" />
							</div>
							<div class="float-right">
								<a href="##" onClick="ColdFusion.Window.show('Feedback')">
									feedback
								</a>
							</div>
							<div class="float-right" style="padding-right:10px;">
								<form action="index.cfm" method="post">
									Eingeloggt als:
									<a href="index.cfm?contentPage=user/editProfile.cfm">
										#getAuthUser()#
									</a>
									<input type="submit" name="logout" value="Logout" />
								</form>
							</div>
							<div class="clear-float" />
			            </cflayoutarea>
			            <!--- linkes menu --->
			            <cflayoutarea title="Navigation" position="left" closable="true" collapsible="true" name="left" splitter="true" style="height:100%">
							<cfmenu name="menu" type="vertical" fontsize="14">
							    <cfmenuitem name="home" href="index.cfm" display="Startseite" />
							    <cfmenuitem name="int" href="index.cfm?contentPage=scrolls/intelligence.cfm" display="Intelligenz" />
							    <cfmenuitem name="str" href="index.cfm?contentPage=scrolls/strength.cfm" display="St&auml;rke" />
							    <cfmenuitem name="wis" href="index.cfm?contentPage=scrolls/wisdom.cfm" display="Weisheit" />
								<cfmenuitem name="agi" href="index.cfm?contentPage=scrolls/agility.cfm" display="Flinkheit" />
								<cfmenuitem name="vit" href="index.cfm?contentPage=scrolls/vitality.cfm" display="Vitalit&auml;t" />
								<cfmenuitem name="named" href="index.cfm?contentPage=named.cfm" display="Named Liste" />
								<cfmenuitem name="changelog" href="index.cfm?contentPage=changelog.cfm" display="Changelog!!" />
								<cfif isUserInRole("admin")>
									<cfmenuitem name="eishotel" href="index.cfm?contentPage=reciepts/quest_Eishotel.cfm" display="Eishotel" />
									<cfmenuitem name="useradmin" href="index.cfm?contentPage=user/userAdmin.cfm" display="Users" />
									<cfmenuitem name="debug" href="index.cfm?contentPage=debug.cfm" display="Debug" />
								</cfif>
							</cfmenu>
			            </cflayoutarea>
			            <!--- inhalt --->
			            <cflayoutarea position="center" style="height:100%">
							<cfinclude template="#contentPage#" />
						</cflayoutarea>

			            <!--- Systemnachrichten --->
			            <cflayoutarea title="Systemnachricht" position="bottom" size="70" splitter="true" style="height:100%">
			                <cfinclude template="footer.cfm" />
			            </cflayoutarea>
			        </cflayout>
			    </cflayoutarea>
			</cflayout>
			<cfwindow width="500" height="400" bodyStyle="background-color:white;padding:5px;" name="Feedback"
		        minHeight="400" minWidth="400"
		        title="Feedback / Bug melden / Verbesserungsvorschlag machen" initshow="false"
		        source="feedback.cfm?contextPage=#contextPage#"
		     />
		</body>
	</html>
</cfoutput>